﻿/**********************************************************************
 * @file   GUIFESubSystemRemeshDialog.h
 * @brief  FE子系统重新划分网格界面声明
 * @author liuzhonghua (liuzhonghuaszch@163.com)
 * @date   2025-01-15
 *********************************************************************/
#ifndef _GUIFESubSystemRemeshDialog_H
#define _GUIFESubSystemRemeshDialog_H

#include "GUISubSystemDialogAPI.h"
#include "GUIWidget/GUIDialogBase.h"
#include "FITK_Kernel/FITKCore/FITKActionOperator.h"

namespace Ui
{
    class GUIFESubSystemRemeshDialog;
}

namespace Core
{
    class FITKActionOperator;
}

namespace Acoustics
{
    class FITKAbstractFESubSys;
}

namespace GUI
{
    /**
     * @brief FE子系统重新划分网格界面
     * @author liuzhonghua (liuzhonghuaszch@163.com)
     * @date 2024-10-23
     */
    class GUISubSystemDialogAPI GUIFESubSystemRemeshDialog :public GUIDialogBase
    {
        Q_OBJECT;
    public:
        /**
         * @brief create object
         * @param[i]  obj            My Param doc
         * @param[i]  oper           operator
         * @param[i]  parent
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        GUIFESubSystemRemeshDialog(Core::FITKActionOperator* oper, QWidget* parent = nullptr);
        /**
         * @brief Destroy object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        virtual ~GUIFESubSystemRemeshDialog();
        /**
         * @brief    初始化
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-15
         */
        void init();

    protected slots:
        /**
         * @brief cencel button clicked slot
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        void on_pushButton_Cancel_clicked();
        /**
         * @brief ok button clicked slot
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        void on_pushButton_OK_clicked();
        /**
         * @brief    on comboBox_PickType currentIndexChanged
         * @param[i] index
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-12-23
         */
        void on_comboBox_PickType_currentIndexChanged(int index);
        /**
         * @brief    ElemNumber radioButton toggled slot
         * @param[i] checkState
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-13
         */
        void on_radioButton_EleNumber_toggled(bool checkState);
        /**
         * @brief    ElemLength radioButton toggled slot
         * @param[i] checkState
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-13
         */
        void on_radioButton_EleLength_toggled(bool checkState);
        /**
         * @brief     ElemLength lineEdit textChanged slot
         * @param[i] text
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-13
         */
        void on_lineEdit_EleLength_textChanged(QString text);
        /**
         * @brief    ElemNumber lineEdit textChanged slot
         * @param[i] text
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-13
         */
        void on_lineEdit_EleNumber_textChanged(QString text);
        /**
         * @brief    关闭槽
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-11-07
         */
        virtual void reject() override;
        /**
         * @brief    拾取完成
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2025-01-13
         */
        void pickDataFinished();

    protected:
        /**
         * @brief ui object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        Ui::GUIFESubSystemRemeshDialog* _ui = nullptr;
        /**
         * @brief 操作器对象
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        Core::FITKActionOperator* _oper = nullptr;
        /**
         * @brief  拾取的SEA子系统
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2025-01-13
         */
        Acoustics::FITKAbstractFESubSys* _subSysObj = nullptr;
    };
}

#endif
